body{
    margin: 0;
    padding: 0;
    background: antiquewhite;
}
.card{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 640px;
    height: 974px;
    background: #fff;
    transform-style: preserve-3d;
    transform: translate(-50%,-50%) perspective(2000px);
    box-shadow: inset 300px 0 50px rgb(0,0,0,.5), 0 20px 100px rgb(0,0,0,.5);
}
.card-img img{
    width: 400px;
    height: 500px;
}
.card:hover{
    transform: translate(-50%,-50%) perspective(2000px) rotate(-10deg);
    box-shadow: inset 20px 0 50px rgb(0,0,0,.5), 0 20px 100px rgb(0,0,0,.5);
}
.card:before{
    content: "";
    position: absolute;
    top:-4px;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgb(250, 235, 215);
    /* 产生翻页的关键属性 */
    transform-origin: bottom;
    transform: skewX(-45deg);
}
.card:after{
    content: "";
    position: absolute;
    top: 0;
    right: -4px;
    width: 5px;
    height: 100%;
    background: rgb(250, 235, 215);
    transform-origin: left;
    transform: skewY(-45deg);
}
.card .imgbox{
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: left;
    transition: 1s;
    z-index: 1;
}
.card:hover .imgbox{
    transform: rotateY(-135deg);
}
.card .details{
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 20px;
    z-index: -1;
}

